﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace PropertyManagementSystemAPI.Models {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "repairinfo", DisableSyncStructure = true)]
	public partial class Repairinfo {

		/// <summary>
		/// 报修id    主键
		/// </summary>
		[JsonProperty, Column(Name = "repairid", DbType = "int", IsPrimary = true, IsIdentity = true)]
		public int Repairid { get; set; }

		/// <summary>
		/// 预约时间区间
		/// </summary>
		[JsonProperty, Column(StringLength = 100, IsNullable = false)]
		public string AppointmentTime { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		[JsonProperty, Column(Name = "createtime", DbType = "datetime")]
		public DateTime? Createtime { get; set; }

		/// <summary>
		/// 设备名称
		/// </summary>
		[JsonProperty, Column(Name = "equipmentname", StringLength = 50)]
		public string Equipmentname { get; set; }

		/// <summary>
		/// 是否删除
		/// </summary>
		[JsonProperty, Column(Name = "isdelete")]
		public bool? Isdelete { get; set; }

		/// <summary>
		/// 外键  报修人
		/// </summary>
		[JsonProperty, Column(Name = "oid", DbType = "int")]
		public int? Oid { get; set; }

		/// <summary>
		/// 处理人员
		/// </summary>
		[JsonProperty, Column(Name = "processor", StringLength = 50)]
		public string Processor { get; set; }

		/// <summary>
		/// 处理电话
		/// </summary>
		[JsonProperty, Column(Name = "processphone", DbType = "char(11)")]
		public string Processphone { get; set; }

		/// <summary>
		/// 报修描述
		/// </summary>
		[JsonProperty, Column(Name = "repairremark")]
		public string Repairremark { get; set; }

		/// <summary>
		/// 状态(0未处理 1已受理  2已处理)
		/// </summary>
		[JsonProperty, Column(Name = "repairstate", DbType = "int")]
		public int? Repairstate { get; set; }

	}

}
